//
// Copyright (C) 2004-2010  Autodesk, Inc.
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
// 
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

#ifdef _WIN32
#pragma once
#endif

#ifndef FDOWCSCOVERAGEDESCRIPTION_H
#define FDOWCSCOVERAGEDESCRIPTION_H

#include "FdoWcsDomain.h"
#include "FdoWcsRange.h"

class FdoWcsCoverageDescription  : public FdoXmlSaxHandler, public FdoIDisposable
{
    typedef FdoXmlSaxHandler BaseType;

public:
    FDOWCS_API static FdoWcsCoverageDescription* Create();

public:
    FDOWCS_API FdoString* GetIdentifier() const;
    FDOWCS_API void SetIdentifier(FdoString* identifier);

    FDOWCS_API FdoString* GetTitle() const;
    FDOWCS_API void SetTitle(FdoString* title);

    FDOWCS_API FdoString* GetAbstract() const;
    FDOWCS_API void SetAbstract(FdoString* abstract);

    FDOWCS_API FdoStringCollection* GetKeywordList() const;

    FDOWCS_API FdoWcsDomain* GetDomain() const;
    FDOWCS_API FdoWcsRange* GetRange() const;

    FDOWCS_API FdoStringCollection* GetSupportedCRSNames() const;
    FDOWCS_API FdoStringCollection* GetSupportedFormatNames() const;

    virtual FdoXmlSaxHandler* XmlStartElement(
        FdoXmlSaxContext* context, 
        FdoString* uri, 
        FdoString* name, 
        FdoString* qname, 
        FdoXmlAttributeCollection* atts
        );
    FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname);

public:
    virtual ~FdoWcsCoverageDescription(void);

protected:
    FdoWcsCoverageDescription(void);
    void Dispose();

private:
    FdoXmlCharDataHandlerP                  mXmlContentHandler;
    FdoStringP                              mIdentifier;
    FdoStringP                              mTitle;
    FdoStringP                              mAbstract;
    FdoStringsP                             mKeywordList;

    FdoWcsDomainP                           mDomain;
    FdoWcsRangeP                            mRange;
 
    FdoStringsP                             mSupportedCRSes;
    FdoStringsP                             mSupportedFormats;
};

typedef FdoPtr<FdoWcsCoverageDescription> FdoWcsCoverageDescriptionP;

#endif // FDOWCSCOVERAGEDESCRIPTION_H